import React, { Component } from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';
import './App.css';
import Admin from './pages/admin/admin';
import Login from './pages/login/login';

export default class App extends Component {
  render() {
    return (
      <div className="App">
        <Switch>
          <Route path="/login" component={Login} />
          <Route path="/" component={Admin} />
          <Redirect to="/login" />
        </Switch>
      </div>
    );
  }
}
